package com.tian.controller;

import com.tian.service.IntroService;
import com.tian.vo.PageResult;
import com.tian.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/intro")
@CrossOrigin
public class IntroControllre {
    @Autowired
    private IntroService introService;
    @GetMapping("/lists")
    public SysResult getList(PageResult pageResult){
        pageResult=introService.getlist(pageResult);
        return SysResult.success(pageResult);
    }
}
